package com.xbongbong.paas.domain.entity;

import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.Getter;
import lombok.Setter;

/**
 * @author: 汪腾伟
 * @date: Created in 2021/8/18 19:02
 * @description： 表单关系实体，主要是产品子表单与父业务的关联关系
 */
@Getter
@Setter
public class PaasFormRefEntity extends Entity {

    /**
     * 主键id
     */
    private Long id;

    /**
     * 公司id
     */
    private String corpid;

    /**
     * 子产品的formId
     */
    private Long formId;

    /**
     * 子产品业务类型
     */
    private Integer businessType;

    /**
     * 比如一个主业务中，有多个产品，用于区分哪个产品
     */
    private Integer type;

    /**
     * 主业务的formId
     */
    private Long mainFormId;

    /**
     * 主业务的业务类型
     */
    private Integer mainBusinessType;

    /**
     * 创建者id
     */
    private String creatorId;
    /**
     * 创建时间时间戳
     */
    private Long addTime;
    /**
     * 更新时间时间戳
     */
    private Long updateTime;
    /**
     * 删除标记
     */
    private Integer del;


    public PaasFormRefEntity() {

    }

    public PaasFormRefEntity(String corpid, Long formId, Integer businessType, Integer type, Long mainFormId, Integer mainBusinessType, String creatorId, Long addTime, Long updateTime, Integer del) {
        this.corpid = corpid;
        this.formId = formId;
        this.businessType = businessType;
        this.type = type;
        this.mainFormId = mainFormId;
        this.mainBusinessType = mainBusinessType;
        this.creatorId = creatorId;
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.del = del;
    }
}
